package Bean;
public class ModeBean{
	private int mode;
	private String lastRun;
	private String totalTopNews;
	private String totalLatestNews;
	public String getLastRun() {
		return lastRun;
	}
	public void setLastRun(String lastRun) {
		this.lastRun = lastRun;
	}
	public int getMode() {
		return mode;
	}
	public void setMode(int mode) {
		this.mode = mode;
	}
	public String getTotalLatestNews() {
		return totalLatestNews;
	}
	public void setTotalLatestNews(String totalLatestNews) {
		this.totalLatestNews = totalLatestNews;
	}
	public String getTotalTopNews() {
		return totalTopNews;
	}
	public void setTotalTopNews(String totalTopNews) {
		this.totalTopNews = totalTopNews;
	}
	public String makeXML(){
		String xml = "<config mode='"+mode+"' lastRun='"+lastRun+"' " +
				"totalTopNews='"+totalTopNews+"' totalLatestNews='"+totalLatestNews+"'/>";
		return xml;
	}
}